package com.internetCafes.spms.web.sys.dao;

import com.internetCafes.spms.common.base.BaseMapper;
import com.internetCafes.spms.core.annotation.NoTentant;
import com.internetCafes.spms.web.sys.model.RoleMenuInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色与菜单对应关系
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-29 00:11:51
 */
@Mapper
public interface RoleMenuInfoMapper extends BaseMapper<RoleMenuInfo> {

    /**
     * 根据角色id列表删除
     */
    int deleteBatchByRoleIdList(@Param("roleIdList") Long[] roleIdList);

    /**
     * 根据角色ID，获取菜单ID列表
     */
    @NoTentant
    List<Long> queryMenuIdList(Long roleId);
	
}
